﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Dog : IEat, IClimbing,ISwim
    {
        private string name;
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public Dog(string name)
        {
            this.name = name;
        }

        public void Climbing()
        {
            Console.WriteLine("{0}会爬树", this.name);
        }

        public void Eat()
        {
            Console.WriteLine("{0}会吃", this.name);
        }

        public void Swim()
        {
            Console.WriteLine("{0}会游泳", this.name);
        }
    }
}
